#include "serverinfo.h"
#include "ui_serverinfo.h"

ServerInfo::ServerInfo(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ServerInfo)
{
    ui->setupUi(this);

}

ServerInfo::~ServerInfo()
{
    delete ui;
}

void ServerInfo::setAddress(QString str)
{
    ui->serverAddress->setText(str);
}

void ServerInfo::setStatus(QString str)
{
    ui->serverStatus->setText(str);
}

void ServerInfo::setWorkLoad(int x)
{
    ui->workLoadBar->setValue(x);
}
